<?php
class Message {
	
	protected static $_messages = array();
	
	protected static $_err_messages = array();
	
	public static function addErrorMessage($message, $elemName = null) { 
		if(!empty($message)) {
			array_push(self::$_err_messages, $message);
		}
	}
	
	public static function getErrMessages() {
		return self::$_err_messages;
	}
}